<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="MvcContrib.FluentHtml.ModelViewPage< Universum.Views.Classes.ClassesLabWorkViewModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Universum - View Lab
</asp:Content>
<asp:Content ContentPlaceHolderID="Breadcrumbs" ID="BreadcrumbsContent" runat="server">
	<%=Html.Breadcrumb().Home().Append<ClassesController>(c => c.Index(), "Your classes").ClassFromPageGroupId(Model.LabWork.PageGroupId).AppendText( Model.LabWork.Title?? "LabWork").End()%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%=Model.LabWork.Title %></h2>
	<div class="span-22">
		<%=Model.LabWork.Text %>
	</div>
	<div class="span-22">
		<%
			foreach (var item in Model.Submissions)
			{
				%>
				User <strong><em> <%=item.Username %></em></strong>
				submitted <em><%=item.FileName %></em>. 
				<%
				using(Html.BeginForm<MyClassesController>(c=>c.Download(item.ID))){%>
					<%=this.SubmitButton("View")%><%
				}
				 %>
				<%
			}
		 %>
	</div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptPlaceHolder" runat="server">
</asp:Content>
